home *** CD-ROM | disk | FTP | other *** search
- Usage:
- stat [-adhnor] [-m<mask>] [-c<char>] [-t<fmt>] [-f[bnpidluUgGsSNJamcoAMC]]
- [file ...]
- n: Don't print stat field names.
- h: Print this help.
- r: stat filenames read from stdin, one per line, after any on command line.
- m: Logically AND file mode with octal integer <mask> before printing it.
- When the mode is printed, at least as many characters as are given
- in <mask> will be printed, with leading zeros if neccessary.
- c: Use <char> to separate each field from the next instead of a newline.
- d: All filenames that consist of digits are taken to be file descriptors
- to be fstat()ed. The file handle is printed instead of the link name.
- o: fstat() all open file descriptors after other filenames are processed.
- t: Use <format> as an strftime(S) format string to print file times
- for A, M, and C field specifications. The default is "%y/%m/%d %T".
- a: Print all fields in all formats. Equivalent to -fbnpidluUgGsSNJamcoAMC.
- f: Select fields to print. The default is nMidlugsJNamc.
- Fields are printed in the order given. The fields are:
- n: name of the link used to access the file (not part of stat struct)
- o: file mode, in octal
- p: file permissions, in octal (equivalent to -fo -m7777)
- b: file mode, symbolically. The first character indicates the type of
- the file (Regular, Directory, Character, Block, Pipe, Semaphore,
- shared Memory, other Name file, or ?unknown); the next three tell
- whether the setUid, setGid, and sTicky bits are set; and the last nine
- tell whether Read, Write, & eXecute are set for user, group, and other.
- i: inode number
- d: id of device containing directory entry
- l: number of links to file
- u, g: file's user and group ownership, as integers
- U, G: file's user and group as names if they have entries in /etc/passwd
- and /etc/group respectively; else as integers.
- s: size, in bytes (not printed for block, char, or name files).
- J, N: Major & minor number (printed only for block, char & name files).
- S: size, in blocks of size used by the filesystem the file resides on.
- a, m, c: time of last access, modification, and creation, in seconds
- since 00:00:00 GMT 1 Jan 1970
- A, M, C: time of last access, modification, and creation, in local time.
-